package controller

import (
	"ezgin-example/service"

	"github.com/gin-gonic/gin"
	"github.com/loebfly/ezgin/engine"
)

type templateController struct{}

// Get godoc
// @Summary 获取模板
// @Description 获取模板
// @Tags 模板
// @Accept x-www-form-urlencoded
// @Produce json
// @Param X-Lang header string false "语种:zh-cn,en-us,zh-tw等，默认为zh-cn"
// @Success 200 {string} string "ok"
// @Router /template/get [post]
func (receiver templateController) Get(c *gin.Context) engine.Result {
	params := engine.GetFormParams(c)
	return service.Template.Get(params)
}
